import japa.parser.ast.Comment;
import japa.parser.ast.CompilationUnit;

public class CommentCounter {

	public CommentCounter(CompilationUnit cu) {
		
		//System.out.println("Number of lines " + cu.getEndLine());
		
		if (cu.getComments() == null ){
    		System.out.println("There are no comments in this class");
    		System.out.println('\n');
     	}else{     	
     		for(Comment c : cu.getComments())
     		{
             	System.out.println(c.getContent());	
     		}
     		System.out.println("Number of Comments " + cu.getComments().size());
     		System.out.println('\n');
     	}
	}
    
     	
       
        
        
        
    }

   